package com.ktwlsoft.archivemanage.domain.dao.entity.businessInspect;

import com.ktwlsoft.archivemanage.service.utils.SnowFlake;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * self_inspect_subject_item--自查--业务指导题目选项
 * @author zhuhe 2023-06-25
 */
@Data
@ApiModel
public class SelfInspectSubjectItem implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    private Long id = SnowFlake.getNextId();

    /**
     * 题目主键
     */
    @ApiModelProperty("题目主键")
    @NotNull(message = "题目主键不能为空")
    private Long subjectId;

    /**
     * 选项
     */
    @ApiModelProperty("选项")
    @NotNull(message = "选项不能为空")
    private String option;

    /**
     * 分值
     */
    @ApiModelProperty("分值")
    @NotNull(message = "分值不能为空")
    private BigDecimal optionMark;

    /**
     * 创建人
     */
    @ApiModelProperty("创建人")
    @Size(max = 30,message = "创建人超长")
    private String creator;

    /**
     * 创建人Id
     */
    @ApiModelProperty("创建人Id")
    private Long creatorId;

    /**
     * 创建日期
     */
    @ApiModelProperty("创建日期")
    @NotNull(message = "创建日期不能为空")
    private Date createdAt;

    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Integer sort;

    /**
     * 被选:1.选中,2.未选中
     */
    @ApiModelProperty("被选:1.选中,2.未选中")
    private Integer checked;

    /**检查拍照(1.开启,0关闭)**/
    @ApiModelProperty("检查拍照(1.开启,0关闭)")
    private Integer hasImgs;

    /**检查方式*/
    @ApiModelProperty("检查方式")
    private String inspectWay;

    /**检查要求*/
    @ApiModelProperty("检查要求")
    private String inspectAsk;

    /**是否满足:reach(满足),not_reach(不满足)*/
    @ApiModelProperty("是否满足:reach(满足),not_reach(不满足)")
    private String reach;

    /**印证材料档号*/
    @ApiModelProperty("印证材料档号")
    private String confirmMaterialReference;

    /**不满足说明*/
    @ApiModelProperty("不满足说明")
    private String failIllustrate;
}